/**
 * 
 */
package com.fox.webapp.persistent.custom;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.fox.webapp.domain.Account;
import com.fox.webapp.domain.Person;

/**
 * @author yockii
 *
 */
public interface AccountRepositoryCustom {

	Account updateAccountOnlySelfDesc(Account account);
	
	Account activeAccount(Account account);
	
	Account addCommission(Account account, Double commission);
	
	long countMine(Person p);
	
	Page<Account> findAccountByCondition(Account account, Pageable pageRequest);
	
	Account recordAccountCommission(String accountNo, String brokerName,
			double commission);
	
	Account recordAccountCommission(Account account);
}
